\section{src/console\-Parser/console\-Parser.c \-File \-Reference}
\label{console_parser_8c}\index{src/console\-Parser/console\-Parser.\-c@{src/console\-Parser/console\-Parser.\-c}}
{\ttfamily \#include \char`\"{}console\-Parser.\-h\char`\"{}}\*
{\ttfamily \#include $<$debug.\-h$>$}\*
\-Include dependency graph for console\-Parser.\-c\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{console_parser_8c__incl}
\end{center}
\end{figure}
\subsection*{\-Data \-Structures}
\begin{DoxyCompactItemize}
\item 
struct {\bf ts\-Console\-Input}
\begin{DoxyCompactList}\small\item\em \-Structure containing the different program process. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{\-Functions}
\begin{DoxyCompactItemize}
\item 
void {\bf print\-Help} ()
\begin{DoxyCompactList}\small\item\em \-Prints menu options. \end{DoxyCompactList}\item 
char {\bf validate\-Input} (char $\ast${\bf p\-Arg})
\begin{DoxyCompactList}\small\item\em \-Validates the input arguments, to verify whether they correspond to a valid program option. \end{DoxyCompactList}\item 
char {\bf process\-Args} (int argc, char $\ast$argv[$\,$], char $\ast$$\ast${\bf p\-Arg\-Files}, char $\ast${\bf p\-Arg})
\begin{DoxyCompactList}\small\item\em \-A process that divides the entry list into commands and arguments to be used in the program execution. \end{DoxyCompactList}\item 
char {\bf parse\-Console\-Input} (int argc, char $\ast$argv[$\,$], char $\ast$$\ast${\bf p\-Arg\-Files}, char $\ast${\bf p\-Arg})
\begin{DoxyCompactList}\small\item\em \-Parse the arguments entered as input to identify the file name and the commands to be executed. \-Validating ever input command. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{\-Variables}
\begin{DoxyCompactItemize}
\item 
char {\bf input\-Command\-Args} [{\bf \-M\-A\-X\-\_\-\-I\-N\-P\-U\-T\-\_\-\-A\-R\-G\-S}]
\begin{DoxyCompactList}\small\item\em \-Array containing incoming commands. \end{DoxyCompactList}\item 
char {\bf input\-Arg\-List} [{\bf \-M\-A\-X\-\_\-\-I\-N\-P\-U\-T\-\_\-\-A\-R\-G\-S}]
\begin{DoxyCompactList}\small\item\em \-Array containing the list of arguments for the application execution. \end{DoxyCompactList}\item 
unsigned char {\bf number\-Input\-Commands} = 0
\begin{DoxyCompactList}\small\item\em \-Number of input commands. \end{DoxyCompactList}\item 
unsigned char {\bf number\-Input\-Args} = 0
\begin{DoxyCompactList}\small\item\em \-Number of input arguments. \end{DoxyCompactList}\item 
{\bf ts\-Console\-Input} {\bf input\-Commands} [$\,$]
\begin{DoxyCompactList}\small\item\em \-Array containing the input commands. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{\-Function \-Documentation}
\index{console\-Parser.\-c@{console\-Parser.\-c}!parse\-Console\-Input@{parse\-Console\-Input}}
\index{parse\-Console\-Input@{parse\-Console\-Input}!consoleParser.c@{console\-Parser.\-c}}
\subsubsection[{parse\-Console\-Input}]{\setlength{\rightskip}{0pt plus 5cm}{\bf parse\-Console\-Input} (
\begin{DoxyParamCaption}
\item[{int}]{argc, }
\item[{char $\ast$}]{argv[$\,$], }
\item[{char $\ast$$\ast$}]{p\-Arg\-Files, }
\item[{char $\ast$}]{p\-Arg}
\end{DoxyParamCaption}
)}\label{console_parser_8c_a9fc4b40085a2aff0587edf4b1a81213c}


\-Parse the arguments entered as input to identify the file name and the commands to be executed. \-Validating ever input command. 


\begin{DoxyParams}{\-Parameters}
{\em argc} & \-Number of arguments. \\
\hline
{\em arg\mbox{[}$\,$\mbox{]}} & \-Array of arguments. \\
\hline
{\em p\-Arg\-Files} & \-Name \-File argument \\
\hline
{\em p\-Arg} & \-Commands \\
\hline
\end{DoxyParams}


\-Definition at line 142 of file console\-Parser.\-c.

\index{console\-Parser.\-c@{console\-Parser.\-c}!print\-Help@{print\-Help}}
\index{print\-Help@{print\-Help}!consoleParser.c@{console\-Parser.\-c}}
\subsubsection[{print\-Help}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf print\-Help} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{console_parser_8c_a0d20b69b0ad703df78459e1033d5c1d4}


\-Prints menu options. 



\-Definition at line 40 of file console\-Parser.\-c.

\index{console\-Parser.\-c@{console\-Parser.\-c}!process\-Args@{process\-Args}}
\index{process\-Args@{process\-Args}!consoleParser.c@{console\-Parser.\-c}}
\subsubsection[{process\-Args}]{\setlength{\rightskip}{0pt plus 5cm}{\bf process\-Args} (
\begin{DoxyParamCaption}
\item[{int}]{argc, }
\item[{char $\ast$}]{argv[$\,$], }
\item[{char $\ast$$\ast$}]{p\-Arg\-Files, }
\item[{char $\ast$}]{p\-Arg}
\end{DoxyParamCaption}
)}\label{console_parser_8c_a2c436ca08ce820e61b3a24b28dde186b}


\-A process that divides the entry list into commands and arguments to be used in the program execution. 


\begin{DoxyParams}{\-Parameters}
{\em argc} & \-Number of arguments. \\
\hline
{\em arg\mbox{[}$\,$\mbox{]}} & \-Incoming argument array \\
\hline
{\em p\-Arg\-Files} & \-Name \-File argument \\
\hline
{\em p\-Arg} & \-Input commands \\
\hline
\end{DoxyParams}


\-Definition at line 98 of file console\-Parser.\-c.

\index{console\-Parser.\-c@{console\-Parser.\-c}!validate\-Input@{validate\-Input}}
\index{validate\-Input@{validate\-Input}!consoleParser.c@{console\-Parser.\-c}}
\subsubsection[{validate\-Input}]{\setlength{\rightskip}{0pt plus 5cm}char char {\bf validate\-Input} (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{p\-Arg}
\end{DoxyParamCaption}
)}\label{console_parser_8c_a2af213d1b5ca1316704f2b32db8d64f0}


\-Validates the input arguments, to verify whether they correspond to a valid program option. 


\begin{DoxyParams}{\-Parameters}
{\em p\-Arg} & \-Argument to validate. \\
\hline
\end{DoxyParams}


\-Definition at line 57 of file console\-Parser.\-c.



\subsection{\-Variable \-Documentation}
\index{console\-Parser.\-c@{console\-Parser.\-c}!input\-Arg\-List@{input\-Arg\-List}}
\index{input\-Arg\-List@{input\-Arg\-List}!consoleParser.c@{console\-Parser.\-c}}
\subsubsection[{input\-Arg\-List}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf input\-Arg\-List}[{\bf \-M\-A\-X\-\_\-\-I\-N\-P\-U\-T\-\_\-\-A\-R\-G\-S}]}\label{console_parser_8c_a1be7c2e9566c13d60a13ca87b20c4554}


\-Array containing the list of arguments for the application execution. 



\-Definition at line 16 of file console\-Parser.\-c.

\index{console\-Parser.\-c@{console\-Parser.\-c}!input\-Command\-Args@{input\-Command\-Args}}
\index{input\-Command\-Args@{input\-Command\-Args}!consoleParser.c@{console\-Parser.\-c}}
\subsubsection[{input\-Command\-Args}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf input\-Command\-Args}[{\bf \-M\-A\-X\-\_\-\-I\-N\-P\-U\-T\-\_\-\-A\-R\-G\-S}]}\label{console_parser_8c_aff2a933e4b49f84d7e94cac676c2e251}


\-Array containing incoming commands. 



\-Definition at line 15 of file console\-Parser.\-c.

\index{console\-Parser.\-c@{console\-Parser.\-c}!input\-Commands@{input\-Commands}}
\index{input\-Commands@{input\-Commands}!consoleParser.c@{console\-Parser.\-c}}
\subsubsection[{input\-Commands}]{\setlength{\rightskip}{0pt plus 5cm}{\bf ts\-Console\-Input} {\bf input\-Commands}[$\,$]}\label{console_parser_8c_a11d16faa773e5354bb38c4b394990d1d}
{\bfseries \-Initial value\-:}
\begin{DoxyCode}

{
{ HEADER_DUMP, "Prints the headers name of the file\n", 0 },
{ RAW_DUMP, "Hex dump of the file\n", 0 },
{ PROCESS_HEADER_CONTENT, "Prints the content of each header\n", 0 },
{ 0, 0, 0 } }
\end{DoxyCode}


\-Array containing the input commands. 



\-Definition at line 31 of file console\-Parser.\-c.

\index{console\-Parser.\-c@{console\-Parser.\-c}!number\-Input\-Args@{number\-Input\-Args}}
\index{number\-Input\-Args@{number\-Input\-Args}!consoleParser.c@{console\-Parser.\-c}}
\subsubsection[{number\-Input\-Args}]{\setlength{\rightskip}{0pt plus 5cm}unsigned char {\bf number\-Input\-Args} = 0}\label{console_parser_8c_a0b353a95f61bfb1fc19a3207638a8161}


\-Number of input arguments. 



\-Definition at line 19 of file console\-Parser.\-c.

\index{console\-Parser.\-c@{console\-Parser.\-c}!number\-Input\-Commands@{number\-Input\-Commands}}
\index{number\-Input\-Commands@{number\-Input\-Commands}!consoleParser.c@{console\-Parser.\-c}}
\subsubsection[{number\-Input\-Commands}]{\setlength{\rightskip}{0pt plus 5cm}unsigned char {\bf number\-Input\-Commands} = 0}\label{console_parser_8c_a408fc63eb7b2e81325968841bd263a3e}


\-Number of input commands. 



\-Definition at line 18 of file console\-Parser.\-c.

